package com.qiuhu.designerpattern.singleton;

/**
 * 最终单例模式
 * 1.私有化构造器：Singleton只有一个实例
 * @author Administrator
 *
 */
public class Singleton {

	private Singleton(){
		
	}
	
	private static class SingletonInstance {
		static Singleton instance = new Singleton();
	}
	
	public static Singleton getInstance() {
		return SingletonInstance.instance;
	}
}
